<?php /* Smarty version 2.6.11, created on 2011-07-04 11:07:48
         compiled from website_attribute.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'math', 'website_attribute.php', 89, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style/css/common.css" type="text/css" />
<title>管理区域</title>
<SCRIPT src="style/js/jquery-1.4.2.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/jquery-ui-1.8.6.custom.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/main.js" type=text/javascript></SCRIPT>
<LINK href="style/css/ui-lightness/jquery-ui-1.8.8.custom.css" type=text/css rel=stylesheet>
<script language="javascript">
$(document).ready(function(){
	/*$("#alexa").load("index.php?m=system&a=alexa&domain=<?php echo $this->_tpl_vars['website']['domain']; ?>
",function(xml){
		var x = $(xml);
		var speed	= {text:x.find("speed").attr("text"),pct:x.find("speed").attr("pct")}
		var linksin	= {num:x.find("linksin").attr("num")};
		var popu	= {url:x.find("popularity").attr("url"),text:x.find("popularity").attr("text")};
		var reach	= {rank:x.find("popularity").attr("rank")};
		var rank	= {delta:x.find("popularity").attr("delta")}
		$("#alexa").text("平均加载时间:"+speed.text/1000+"1秒, 比其它"+speed.pct+"%的网站快");
	});*/
	//$("#pr").load("index.php?m=system&a=pr&domain=<?php echo $this->_tpl_vars['website']['domain']; ?>
");
	$("#record").load("index.php?m=seo&a=record&domain=<?php echo $this->_tpl_vars['website']['domain']; ?>
");
	$("#tabs-7").load('index.php?m=friendlink&a=list&wid=<?php echo $this->_tpl_vars['website']['wid']; ?>
',function(){
		if(typeof eval(parent.restIframe)!=='undefined') parent.restIframe();
		$( "#sortable" ).sortable({
			'items':'.f',
			'stop':function (){
				_sort();
			}
		});
		$( "#sortable" ).disableSelection();
		_sort();
	});
});
sortId	= new Array;
function _sort()
{
	$( ".sort" ).each(function(key,val){
		$(this).html(key+1);
	});	
	$(".f :checkbox").each(function(key,val){
		sortId[key] = $(".f :checkbox").eq(key).val();
	});
}
	  </script>
<style>
.tablist{ padding-left:0.2em;padding-right:0.4em;}
</style>
</head>
<body>
<div id="man_zone">
  <div id="tabs">
	<ul>
		<li><a href="#tabs-1">栏目</a></li>
		<li><a href="#tabs-2">属性</a></li>
		<li><a href="#tabs-6">数据</a></li>
        <li><a href="#tabs-4">SEO</a></li>
        <li><a href="#tabs-5">SEM</a></li>
        <li><a href="#tabs-3">从其它CMS导入</a></li>
        <li><a href="#tabs-7">友情链接</a></li>
	</ul>
 <div id="tabs-1" class="tablist">
   <table width="100%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
    <tr align="left">
      <td colspan="4">
      <span style="padding:0 10px 0 10px;" class="button"><strong>域名:<?php echo $this->_tpl_vars['website']['domain']; ?>
</strong></span>
      <a href="index.php?m=column&a=add&wid=<?php echo $this->_tpl_vars['arg']['wid']; ?>
" class="button">增加栏目</a>
      <a href="index.php?m=system&a=preview&wid=<?php echo $this->_tpl_vars['website']['wid']; ?>
" class="button" target="_blank">预览首页</a>
      <a href="index.php?m=system&a=make&action=index&wid=<?php echo $this->_tpl_vars['website']['wid']; ?>
" class="button make" target="_blank">刷新首页</a>
      <a href="index.php?m=system&a=make&action=column&classid=wid&wid=<?php echo $this->_tpl_vars['arg']['wid']; ?>
" class="button make" target="_blank">刷新所有栏目页</a>
      <a href="index.php?m=system&a=make&action=page&aid=wid&wid=<?php echo $this->_tpl_vars['website']['wid']; ?>
" class="button make" target="_blank">刷新所有信息页</a>
      
      <span style="float:right; padding-right:100px;">
      <!--Alexa 排名:<span id="alexa" style="padding-right:10px; color:green;"><img src="style/images/loading3.gif" height="20" />正在查询...</span> 
      Google PR 值:<span id="pr" style="padding-right:10px; color:green;"><img src="style/images/loading3.gif" height="20" />正在查询...</span>-->
      百度收录:<span id="record" style="padding-right:10px;  color:green;"><img src="style/images/loading3.gif" height="20" />正在查询...</span>
      </span>
      </td>
      </tr>
    <tr align="center">
      <td>ID</td>
      <td>栏目名</td>
      <td>排序</td>
      <td>操作</td>
    </tr>
    <?php $_from = $this->_tpl_vars['columns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['val']):
?>
    <?php if ($this->_tpl_vars['val']['level'] == 0): ?>
    <?php echo smarty_function_math(array('equation' => "(x+y)*z",'x' => $this->_tpl_vars['val']['level'],'y' => 1,'z' => 20,'assign' => 'padding'), $this);?>

    <tr align="center"<?php if ($this->_tpl_vars['val']['level'] == 0): ?> style="background-color:#F3F8F7;"<?php endif; ?>>
      <td><label><?php echo $this->_tpl_vars['val']['classid']; ?>
<input name="classid" type="checkbox" value="<?php echo $this->_tpl_vars['val']['classid']; ?>
" /></label></td>
      <td align="left" style="padding-left:<?php echo $this->_tpl_vars['padding']; ?>
px;">
      	<?php if ($this->_tpl_vars['val']['level'] == 0): ?><img src="style/images/folder1.gif" /><?php else: ?><img src="style/images/folder2.gif" /><?php endif; ?>
        <a href="index.php?m=column&classid=<?php echo $this->_tpl_vars['val']['classid']; ?>
"><?php echo $this->_tpl_vars['val']['classname']; ?>
</a><?php if ($this->_tpl_vars['val']['display'] == 0): ?><span style="color:red">(隐)</span><?php endif; ?>
      </td>
      <td><input name="" type="text" size="4" class="size" /></td>
      <td><a href="index.php?m=data&a=update&preview=1&classid=<?php echo $this->_tpl_vars['val']['classid']; ?>
&wid=<?php echo $this->_tpl_vars['val']['wid']; ?>
&type=column" target="_blank">预览</a> <a href="index.php?m=make&amp;a=column&amp;classid=<?php echo $this->_tpl_vars['val']['classid']; ?>
" target="_blank" class="make">刷新</a> <a href="index.php?m=column&amp;id=<?php echo $this->_tpl_vars['val']['classid']; ?>
#tabs-2">修改</a> <a href="index.php?m=column&amp;a=delete&amp;classid=<?php echo $this->_tpl_vars['val']['classid']; ?>
" class="delete"> <a href="index.php?m=column&a=delete&classid=<?php echo $this->_tpl_vars['val']['classid']; ?>
&wid=<?php echo $this->_tpl_vars['val']['wid']; ?>
" class="delete">删除</a></td>
    </tr>
    <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?>
    <tr bgcolor="#FFFFFF">
      <td colspan="4" align="left">
      <span>全选/反选<input name="" id="checkAll" type="checkbox" value="" /></span>
      <span><input name="" type="button" class="delete" value="删除" onclick="window.location.href='index.php?m=column&a=delete&classid='+getCheckBox()+'&wid=<?php echo $this->_tpl_vars['val']['wid']; ?>
'" /></span>
      </td>
      </tr>
  </table>
	</div>
	<div id="tabs-2" class="tablist">
    <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <form name="form1" method="post" action="index.php?m=website&a=attribute&wid=<?php echo $this->_tpl_vars['arg']['wid']; ?>
">
        <tr class="header"> 
          <td height="25" colspan="2">基本信息设置</td>
        </tr>
        <tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">站点名称</td>
          <td width="78%" height="25" bgcolor="#FFFFFF"> <input name="sitename" type="text" id="sitename" value="<?php echo $this->_tpl_vars['attr']['title']; ?>
" size="38"></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">网站地址</td>
          <td height="25" bgcolor="#FFFFFF"> <input name="newsurl" type="text" id="newsurl4" value="<?php echo $this->_tpl_vars['attr']['url']; ?>
" size="38"> 
            <font color="#666666">(后面需加"/"，如：http://xxx.xxx.xxx/)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">HTML默认保存路径</td>
          <td height="25" bgcolor="#FFFFFF"> <input name="arcdir" type="text" id="arcdir" value="<?php echo $this->_tpl_vars['attr']['arcdir']; ?>
" size="38"> 
            <font color="#666666">(当前地址:<?php echo $this->_tpl_vars['nowpath']; ?>
)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">模板文件夹路径</td>
          <td height="25" bgcolor="#FFFFFF"><input name="tempdir" type="text" id="tempdir" value="<?php echo $this->_tpl_vars['attr']['tempdir']; ?>
" size="38" disabled> 
           </td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">附件地址</td>
          <td height="25" bgcolor="#FFFFFF"><input name="fileurl" type="text" id="fileurl" value="<?php echo $this->_tpl_vars['attr']['fileurl']; ?>
" size="38">
            <font color="#666666">(绑定域名时设置，后面需加"/"，如：/d/file/)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">管理员邮箱</td>
          <td height="25" bgcolor="#FFFFFF"> <input name="email" type="text" id="email" value="<?php echo $this->_tpl_vars['attr']['email']; ?>
" size="38"></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#FFFFFF">网站关键字</td>
          <td height="25" bgcolor="#FFFFFF"><input name="sitekey" type="text" id="sitekey" value="<?php echo $this->_tpl_vars['attr']['keywords']; ?>
" size="38"></td>
        </tr>
        <tr>
          <td height="25" bgcolor="#FFFFFF">网站简介</td>
          <td height="25" bgcolor="#FFFFFF"><textarea name="siteintro" cols="80" rows="5" id="siteintro"><?php echo $this->_tpl_vars['attr']['description']; ?>
</textarea></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">首页文件扩展名</td>
          <td height="25" bgcolor="#FFFFFF"><input name="indextype" type="text" id="indextype" value="<?php echo $this->_tpl_vars['attr']['indextype']; ?>
" size="38"> 
            <font color="#666666"> 
            <font color="#666666"></font>(如：.html,.htm,.xml,.php)</font></td>
        </tr>
        <tr> 
          <td height="25" bgcolor="#FFFFFF">首页模板文件名</td>
          <td height="25" bgcolor="#FFFFFF"><input name="indextemp" type="text" id="indextemp" value="<?php echo $this->_tpl_vars['attr']['indextemp']; ?>
" size="38"> 
            <font color="#666666"> 
            <font color="#666666"></font>(如：index.html,index.htm,index.xml,index.php)</font></td>
        </tr>
        <tr>
        <td colspan="2">
        <input type="hidden" name="cid" value="<?php echo $this->_tpl_vars['cid']; ?>
" />
        <input type="hidden" name="wid" value="<?php echo $this->_tpl_vars['arg']['wid']; ?>
">
        <input type="submit" name="button" id="button" value="提交" />
        </td>
     </tr>
        </form>
      </table>
      
	</div>
	<div id="tabs-3">
	
    <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder"><form action="index.php?m=website&a=import" method="post">
      <tr>
        <td colspan="2">数据库</td>
        </tr>
      <tr>
        <td>网站域名:</td>
        <td><label for="textfield"></label>
          <input type="text" name="domain" id="domain" value="<?php echo $this->_tpl_vars['website']['domain']; ?>
" /></td>
      </tr>
      <tr>
        <td>数据库地址:</td>
        <td><input name="host" type="text" id="host" value="" /></td>
      </tr>
      <tr>
        <td>数据库用户名:</td>
        <td><input name="username" type="text" id="username" value="root" /></td>
      </tr>
      <tr>
        <td>数据库密码:</td>
        <td><input type="text" name="password" id="password" /></td>
      </tr>
      <tr>
        <td>数据库名:</td>
        <td><input type="text" name="dbname" id="dbname" /></td>
      </tr>
      <tr>
        <td>数据表前缀:</td>
        <td><input name="charset" type="text" id="charset" value="utf8" /></td>
      </tr>
      <tr>
        <td>编码:</td>
        <td><input name="prefix" type="text" id="prefix" value="dede_" /></td>
      </tr>
      <tr>
        <td colspan="2">检查数据库连接</td>
        </tr>
      <tr>
        <td colspan="2"><span id="spryradio1">CMS类型:
          <label>
            dede<input name="cmsType" type="radio" id="cmsType" value="dede" checked="checked" />
          </label>
          <label>
            帝国<input name="cmsType" type="radio" id="cmsType" value="empire" disabled="disabled" />
          </label>
        </span>
       </td>
      </tr>
      <tr>
        <td colspan="2">内容模型:
        <span id="sprycheckbox1">
          <label for="checkbox1">
          普通文章<input name="article" type="checkbox" id="article" value="1" checked="checked" />
          </label>
        </span>
        </td>
      </tr>
      <tr>
        <td colspan="2">
        <input type="hidden" name="wid" value="<?php echo $this->_tpl_vars['arg']['wid']; ?>
" />
        <input type="hidden" name="cid" value="<?php echo $this->_tpl_vars['website']['cid']; ?>
" />
        <input type="submit" name="button" id="button" value="提交" />
        </td>
     </tr>    </form>
    </table>

	</div>
    <div id="tabs-4" class="tablist">
    </div>
    
    <div id="tabs-7" class="tablist">
    
    </div>
</div>

</div>
</body>
</html>